package com.pactera.miyuangroup.vo.response.web;

import com.pactera.miyuangroup.vo.response.BaseResponse;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 组织结构
 *
 * @author Wangwu
 * @create 2018-04-20 上午10:42
 **/
@Data
@ApiModel(description = "组织结构")
public class OrganizationRes extends BaseResponse {

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键ID")
    private String id;
    /**
     * 组织名称
     */
    @ApiModelProperty(value = "组织名称")
    private String name;
    /**
     * 父组织结构ID
     */
    @ApiModelProperty(value = "父组织结构ID")
    private String pid;

    /**
     * 下级组织
     */
    @ApiModelProperty(value = "组织")
    private List<OrganizationRes> children = null;
}
